<!--
  @author heguanghua
  @since 2019/06/12 19:34
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <!--<th lay-data="{type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>-->
        <th lay-data="{field:'configId', width:150, unresize:true, align:'center', hide:true}">配置ID</th>
        <th lay-data="{field:'cityName', width:150, unresize:true, align:'center'}">城市</th>
        <th lay-data="{field:'servCategName', minWidth:150, unresize:true, align:'center'}">服务分类</th>
        <th lay-data="{field:'categOneName', minWidth:150, unresize:false, align:'center'}">前台一级分类</th>
        <th lay-data="{field:'categTwoName', minWidth:150, unresize:false, align:'center'}">前台二级分类</th>
        <th lay-data="{field:'stock', width:200, unresize:false, align:'center'}">库存预警量</th>
        <th lay-data="{field:'coefficient', width:200, unresize:true, align:'center', edit:'text'}">预警节假日系数</th>
        <th lay-data="{field:'proportion', width:200, unresize:false, align:'center', hide:true}">库存预警比例</th>
        <th lay-data="{field:'proportion%', width:200, unresize:false, align:'center'}">库存预警比例</th>
        <th lay-data="{field:'updateTime', width:200, unresize:true, align:'center'}">最近修改人/时间</th>
        <th lay-data="{field:'操作',width:100, unresize:true, align:'center', fixed:'right'}">操作</th>
    </tr>
    </thead>

    <tbody>
    <tr th:each="item:${items}">
        <!--<td></td>-->
        <td th:text="${item.configId}">configId</td>
        <td th:text="${item.cityName}">cityName</td>
        <td th:text="${item.servCategName}" class="">servCategName</td>
        <td th:text="${item.categOneName}" class="layui-gray">categOneName</td>
        <td th:text="${item.categTwoName}" class="layui-gray">categTwoName</td>
        <td th:text="${item.stock == -1 ? '-' : item.stock}" class="layui-gray">stock</td>
        <td th:text="${item.coefficient}" class="layui-gray">coefficient</td>
        <td th:text="${item.proportion}" class="layui-gray">proportion</td>
        <td th:text="${item.proportion == null ? '-' : item.proportion+'%'}" class="layui-gray">proportion%</td>
        <td th:text="${(item.updater != null ? item.updater+'/' : '')+T(com.zmn.common.utils.date.DateUtil).toString(item.updateTime)}">updateTime</td>
        <td>
            <div>
                <a th:if="${#authPermit.checkPermit('/sp/warning/orderStock/update.action')}"  lay-text="修改" style="color: #00a0e9" lay-event="updateStock">修改</a>
            </div>
        </td>
    </tr>
    </tbody>
</table>
